package org.example.domain;

import org.springframework.stereotype.Component;

/**
 * @author Jimmy
 * @version 1.0
 */

public class JsonData<T>{
    private T data;
    private Meta meta;


    public JsonData() {
    }

    public JsonData(Meta meta) {
        this.meta = meta;
    }

    public JsonData(T data, Meta meta) {
        this.data = data;
        this.meta = meta;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Meta getMeta() {
        return meta;
    }

    public void setMeta(Meta meta) {
        this.meta = meta;
    }

    @Override
    public String toString() {
        return "JsonData{" +
                "data=" + data +
                ", meta=" + meta +
                '}';
    }
}
